
import 'dart:developer';

import 'package:get/get.dart';

///@author:create by BZY
///Date: 2021/8/3 14:11
///Description:
class CheckPhotoLogic extends GetxController{
  var photoList=List<String>.empty(growable: true);
  var initPage=1;
  int currentPage=1;
  @override
  void onInit() {
    photoList=Get.arguments?['photos'];
    initPage=Get.arguments?['index'];
    log('message--------------$initPage---${Get.arguments}');
    currentPage=initPage+1;
    super.onInit();
  }

  void pageChange(int index){
    currentPage=index+1;
    update(['index']);
  }

  void onBack() {
    Get.back();
  }
}
